package com.erp.erp_ui.business.req;

import com.erp.annotation.PropertyMsg;

import java.math.BigDecimal;

/**
 * @ClassName : AddOfferCost
 * @Description : 新增报价费用入参实体
 * @Author : lst
 * @Date: 2021-01-16 12:07
 */
public class AddOfferCostReq {

    /**
     * 主键id
     */
    private Integer id;

    /**
     * 报价id
     */
    private Integer parentId;

    /**
     * 费用类型名称
     */
    @PropertyMsg("费用类型名称")
    private String typeName;

    /**
     * 费用类型编码
     */
    private String typeCode;

    /**
     * 金额
     */
    @PropertyMsg("金额")
    private BigDecimal amount;

    /**
     * 备注
     */
    @PropertyMsg("备注")
    private String memo;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getTypeCode() {
        return typeCode;
    }

    public void setTypeCode(String typeCode) {
        this.typeCode = typeCode;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    /**
     * 重写toString
     */
    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("AddOfferCost").append('[')
                .append("id=")
                .append(id)
                .append(",parentId=")
                .append(parentId)
                .append(",typeName=")
                .append(typeName)
                .append(",typeCode=")
                .append(typeCode)
                .append(",amount=")
                .append(amount)
                .append(",memo=")
                .append(memo)
                .append(']');
        return sb.toString();
    }
}
